package com.xitang.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xitang.common.bean.BizProduct;
import com.xitang.common.dto.ProductQueryReq;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BizProductMapper extends BaseMapper<BizProduct> {
    List<BizProduct> selectDataByCustom(@Param("offset") Integer offset, @Param("pageSize") Integer pageSize,
                                        @Param("queryReq") ProductQueryReq queryReq);

    Long selectCountByCustom(@Param("queryReq") ProductQueryReq queryReq);
}
